<?php
/**
 * Created by PhpStorm.
 * User: zhangyurong
 * Date: 2016/8/26
 * Time: 17:41
 */
namespace App\Http\Controllers\Common;

use Illuminate\Support\Facades\Auth;

class LoginController extends CommonController
{
    /**
     * 登陆信息
     * @return \Illuminate\Http\JsonResponse
     */
    public function info(){
        $personalUser=Auth::guard("personal")->user();
        $companyUser=Auth::guard("company")->user();
        $personalUserName=$personalUser['username'];
        $companyUserName=$companyUser['username'];

        return response()->json(['personalUserName' => $personalUserName, 'companyUserName' => $companyUserName]);
    }
}